package cn.tianyun.pethome.basic.base.mapper;

import cn.tianyun.pethome.basic.base.query.BaseQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

public interface BaseMapper<T> {
    void add(T t);
    void update(T t);
    void delete(Long id);
    T loadById(Long id);
    List<T> loadAll();
    Long queryCount(BaseQuery query);
    List<T> queryData(BaseQuery query);

    void batchdelete(List<Long> ids);
}
